#include <stdio.h>
#include <math.h>

typedef float float_bits;

int float_f2i(float_bits f)
{
printf("your num is %f\n",f);
if(f>=0&&f<=32767)
return fabs(f);
else if(f<0&&fabs(f)<32768)
return -fabs(f);
else
return 0x80000000;
}
int main(){
float_bits i;
scanf("%f",&i);
printf("float_f2i is %d,(int) is %d\n",float_f2i(i),(int)i);
return 0;
}
